<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html"
              encoding="utf-8"
              media-type="text/html"
              doctype-public="-//W3C//DTD HTML 4.01//EN"
              doctype-system="http://www.w3.org/TR/xtml4/strict.dtd" />

  <xsl:template match="/">
    <xsl:apply-templates select="content/comment" />
  </xsl:template>

  <xsl:template match="comment">
    <div class='comment'>
      <xsl:apply-templates select="autor" />
    </div>
    <p class='date-tip'>
      <span class='ui-icon ui-icon-calendar' /><xsl:value-of select="@date-time" />
    </p>
    <div class='text'>
      <xsl:value-of select="content" disable-output-escaping="yes" />
    </div>
  </xsl:template>

  <xsl:template match="autor">
    <div class='autor-tip ui-corner-all' style='background-image:url({@avatar}?s=16);' />
    <span class='autor-tip'>
      <xsl:value-of select="." />
    </span>
  </xsl:template>

</xsl:stylesheet>
